import { createRouter, createWebHistory } from 'vue-router'
import Home from '../views/Home.vue'
import RoseChart from '../views/RoseChart.vue'
// 导入桥梁系统相关组件
import BridgeSystem from '../views/bridge/BridgeSystem.vue'
import DeviceList from '../views/bridge/DeviceList.vue'
import AlarmRecords from '../views/bridge/AlarmRecords.vue'

// 导入管廊系统相关组件
import PipeGallerySystem from '../views/pipeGallery/PipeGallerySystem.vue'
import ProductInfo from '../views/pipeGallery/ProductInfo.vue'
import PipeDeviceInfo from '../views/pipeGallery/DeviceInfo.vue'
import VideoList from '../views/pipeGallery/VideoList.vue'
import PipeAlarmRecords from '../views/pipeGallery/AlarmRecords.vue'
import WarningRecords from '../views/pipeGallery/WarningRecords.vue'

// 导入电梯系统相关组件
import LiftSystem from '../views/lift/LiftSystem.vue'
import IotDevices from '../views/lift/IotDevices.vue'
import RealTimeStatus from '../views/lift/RealTimeStatus.vue'
import FaultMonitoring from '../views/lift/FaultMonitoring.vue'

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/rose',
    name: 'RoseChart',
    component: RoseChart
  },
  // 添加桥梁系统路由
  {
    path: '/bridge',
    name: 'BridgeSystem',
    component: BridgeSystem
  },
  {
    path: '/bridge/devices',
    name: 'BridgeDevices',
    component: DeviceList
  },
  {
    path: '/bridge/alarms',
    name: 'BridgeAlarms',
    component: AlarmRecords
  },
  // 添加管廊系统路由
  {
    path: '/pipe-gallery',
    name: 'PipeGallerySystem',
    component: PipeGallerySystem
  },
  {
    path: '/pipe-gallery/products',
    name: 'PipeGalleryProducts',
    component: ProductInfo
  },
  {
    path: '/pipe-gallery/devices',
    name: 'PipeGalleryDevices',
    component: PipeDeviceInfo
  },
  {
    path: '/pipe-gallery/videos',
    name: 'PipeGalleryVideos',
    component: VideoList
  },
  {
    path: '/pipe-gallery/alarms',
    name: 'PipeGalleryAlarms',
    component: PipeAlarmRecords
  },
  {
    path: '/pipe-gallery/warnings',
    name: 'PipeGalleryWarnings',
    component: WarningRecords
  },
  // 添加电梯系统路由
  {
    path: '/lift',
    name: 'LiftSystem',
    component: LiftSystem
  },
  {
    path: '/lift/iot-devices',
    name: 'LiftIotDevices',
    component: IotDevices
  },
  {
    path: '/lift/real-time-status',
    name: 'LiftRealTimeStatus',
    component: RealTimeStatus
  },
  {
    path: '/lift/fault-monitoring',
    name: 'LiftFaultMonitoring',
    component: FaultMonitoring
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router 